home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group95c.txt / 000046_icon-group-sender _Wed Oct 11 19:23:49 1995.msg < prev    next >
Internet Message Format  |  1996-01-03  |  2KB

  1. Received: by cheltenham.cs.arizona.edu; Thu, 12 Oct 1995 09:18:09 MST
  2. Date: Wed, 11 Oct 1995 19:23:49 -0700
  3. From: Gregg Townsend <gmt>
  4. Message-Id: <9510120223.AA01683@hawk.CS.Arizona.EDU>
  5. To: nmw@styx.ios.com
  6. Subject: Re:  Strange loadfunc related bug in iconc
  7. Cc: icon-group
  8. Errors-To: icon-group-errors@cs.arizona.edu
  9.  
  10.     From: Nick Williams <nmw@styx.ios.com>
  11.     
  12.     ...
  13.     I had written up a small library of routines to interface to system
  14.     calls and functions (such as fork, getuid, etc..). Now, as I tried to
  15.     use them once again I have run into a problem: everything works fine
  16.     when the Icon code is interpreted, but the return values of external
  17.     functions are screwed up when the Icon code is compiled.
  18.     ...
  19.     Perhaps the bug is in the code that iconc generates, which I have
  20.     serious trouble following (it wasn't meant to be read, was it? :)
  21.     ...
  22.  
  23. Not really.  And your speculation is probably right.  Try compiling with
  24. "iconc -n t" and see if that fixes it.  If not, add "iconc -f s" and try
  25. that.
  26.  
  27.     PS: To get Icon to run under FreeBSD I had to perform two changes to the
  28.         source code: a) change "RTLD_LAZY" in fload.r to 1 and b) include a
  29.         copy of ecvt() in rmisc.r surrounded by ifdefs (BSD_4_4_LITE).
  30.  
  31. Thanks for that info.  Can you tell us what would be a correct FreeBSD
  32. entry for ipl/packs/loadfunc/mklib.sh?
  33.  
  34.     Gregg Townsend / Computer Science Dept / Univ of Arizona / Tucson, AZ 85721
  35.     +1 520 621 4325     gmt@CS.Arizona.EDU     110 57 16 W / 32 13 45 N / +758m
  36.